/**
 * Copyright @ 2000 ysten Co. Ltd. 
 * All right reserved.     
 * @author: wangmin
 * date: 2016-05-15     
 */
package com.task.service;

import java.util.List;
import java.util.Map;

import com.task.bean.EnumConstants;
import org.springframework.data.domain.Page;

import com.task.entity.ParentTask;

public interface IParentTaskService
{
    
    void save(ParentTask parentTask);
    
    void delete(Long id);
    
    ParentTask findById(Long id);
    
    Page<ParentTask> findParentTaskPage(Map<String, Object> searchParams, int page, int rows); 
    
    Page<ParentTask> findTaskList(Map<String, Object> searchParams, int page, int rows,String orderBy);
    
    List<ParentTask> findByCondition(Map<String, Object> searchParams);

    /**
     * 生成唯一主任务编码
     * @param taskType
     * @return
     */
    String getParentTaskCode(EnumConstants.TaskType taskType);
    
}
